<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" 
                xmlns:fn="http://java.sun.com/jsp/jstl/functions" >

    <h:form>  
        <p:menu>  
            <p:submenu label="Admin Manage">  
                <p:menuitem value="Atividades" url="/atividades.xhtml" icon="ui-icon-home"  styleClass="#{fn:contains(view.viewId, 'atividade') ? 'active' : ''}" />  
                <p:menuitem value="Serviços" url="/services.xhtml" icon="ui-icon-star"   styleClass="#{fn:contains(view.viewId, 'service') ? 'active' : ''}" /> 
                <p:menuitem value="Sistemas" url="/systems.xhtml" icon="ui-icon-pencil" styleClass="#{fn:contains(view.viewId, 'system') ? 'active' : ''}" /> 
            </p:submenu>  
        </p:menu>  
    </h:form>

</ui:composition> 
